<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../js/vue.min.js" type="text/javascript" charset="utf-8"></script>
		<style>
			.v-enter,.v-leave-to{
				opacity: 0;
				transform: translateX(150px);
			}
			.v-enter-active,.v-leave-active{
				transition: all 0.8s ease;
			}
			.my-enter,.my-leave-to{
				opacity: 0;
				transform: translateY(150px);
			}
			.my-enter-active,.my-leave-active{
				transition: all 0.8s ease;
			}
		</style>
	</head>
	<body>
		<div id="app">
			<input type="button" id="" value="toggle" @click="flag=!flag"/>
			<transition>
				<h3 v-if="flag">文字</h3>
			</transition>
			<hr />
			<input type="button" id="" value="toggle" @click="flag2=!flag2"/>
			<transition name="my">
				<h3 v-if="flag2">文字</h3>
			</transition>
		</div>
		<script type="text/javascript">
			new Vue({
				el:"#app",
				data:{
					flag:false,
					flag2:false
				}
			});
		</script>
	</body>
</html>
